package com.tech.zhidengxian.model.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.tech.zhidengxian.mapper.typehandler.JsonTypeHandler;
import com.tech.zhidengxian.model.constant.MessageType;
import com.tech.zhidengxian.model.dataobject.UserDO;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class MessageDTO implements Serializable {
    private Long id;
    private String content;
    private MessageType messageType;
    private Long cid;
    private Long creatorId;
    private Long receiverId;
    @TableField(typeHandler = JsonTypeHandler.class)
    private UserDTO creatorInfo;
    @TableField(typeHandler = JsonTypeHandler.class)
    private UserDTO receiverInfo;
    private Date createTime;
    private Date updateTime;
    private Boolean isDeleted;
}
